Conditions | 5 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | // eslint-disable-next-line no-unused-vars |
||
16 | if (_class.indexOf('.') === 0) { |
||
17 | return _class.substr(1); |
||
18 | } |
||
19 | return _class; |
||
20 | } |
||
21 | |||
22 | addAfter(wait = 0) { |
||
23 | if (wait) { |
||
24 | setTimeout(() => { |
||
25 | this.elm.classList.add(this.class); |
||
26 | }, wait); |
||
27 | } else { |
||
28 | this.elm.classList.add(this.class); |
||
29 | } |
||
56 |